package com.elcom.roaming.module.collection.match;

import com.elcom.roaming.common.util.match.ObjectInput;

public class UIMessage extends ObjectInput{
	
	public UIMessage(int seq, String time, String type, String orgTransId, String termTransId, String gtCalled, String gtCalling, String imsi, String msisdn) {
		setKey(new UIKey(seq, (type.equals("U0")? UIValue.U0:UIValue.I0), time, orgTransId, termTransId, gtCalled, gtCalling)); 

		if (type.equals("U0")) setValue(new UIValue(UIValue.U0, imsi));
		else if (type.equals("I0")) setValue(new UIValue(UIValue.I0, msisdn));
		else {} // never go in
	}
	
}
